package cn.zcf.org.domain;

import cn.zcf.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Dept extends BaseDomain {
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Emp manager;
    private Dept parent;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Dept> children = new ArrayList<>();
}
